#!/usr/bin/python
import sys

if __name__ == '__main__':
    if len(sys.argv) < 2:
	print 'usage:<input>'
	exit(-1)
    
    ftrain = sys.argv[1]    
    fo = open( 'features/%s.tstamp' % sys.argv[1], 'w' )    
    fo.write( '1\n' )
    for line in open( ftrain ):
        ts = int( line.split()[3] )
        fo.write('1 0:%d\n' % ts )
    fo.close()
    
